package com.kanshu.ksgb.fastread.doudou.common.business.commonbean;

import android.os.Parcel;
import android.os.Parcelable;

public class SignInfo implements Parcelable {
    // 连续签到次数
    public String num;
    // 分红池是否解锁
    public int unlock;
    // 后台当前时间
    public long current_time;
    // 分红池数目
    public String residue_amount;
    // 最大补签次数
    public int max_supplement_num;
    // 当前是周几
    public int week;
    // 本周已经补签次数
    public int supplement_num;
    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.num);
        dest.writeInt(this.unlock);
        dest.writeLong(this.current_time);
        dest.writeString(this.residue_amount);
        dest.writeInt(this.max_supplement_num);
        dest.writeInt(this.week);
        dest.writeInt(this.supplement_num);
    }

    public SignInfo() {
    }

    protected SignInfo(Parcel in) {
        this.num = in.readString();
        this.unlock = in.readInt();
        this.current_time = in.readLong();
        this.residue_amount = in.readString();
        this.max_supplement_num = in.readInt();
        this.week = in.readInt();
        this.supplement_num = in.readInt();
    }

    public static final Parcelable.Creator<SignInfo> CREATOR = new Parcelable.Creator<SignInfo>() {
        @Override
        public SignInfo createFromParcel(Parcel source) {
            return new SignInfo(source);
        }

        @Override
        public SignInfo[] newArray(int size) {
            return new SignInfo[size];
        }
    };
}
